<template>
  <div class="">
    <input type="text" :value="modelValue" @input="changeInp" />
  </div>
</template>

<script>
import { ref, reactive, toRefs } from "vue";
import { useStore } from "vuex";
import { useRouter, useRoute } from "vue-router";
export default {
  props: {
    modelValue: String,
  },
  setup(props, ctx) {
    const store = useStore();
    const router = useRouter();
    const route = useRoute();
    const data = reactive({});
    const changeInp = (e) => {
      ctx.emit("update:modelValue", e.target.value);
    };
    return { ...toRefs(data), changeInp };
  },
};
</script>

<style lang="scss"></style>
